import request from "@/utils/request";
// 订单管理 - 订单设置
export function setOrderSetting(data) {
  return request({
    url: `/cms-shop/api/order-configuration`,
    method: "put",
    data:data,
  });
}


// 订单管理 - 退款设置
export function getProvince(query) {
  return request({
    url: "/cms-shop/api/province/list",
    method: "get",
    params:query,
  });
}
export function getCities(query) {
  return request({
    url: "/cms-shop/api/city/list",
    method: "get",
    params:query,
  });
}
export function getArea(query) {
  return request({
    url: "/cms-shop/api/area/list",
    method: "get",
    params:query,
  });
}

// 获取订单配置列表
export function getOrderSettingInfo() {
  return request({
    url: "/cms-shop/api/order-configuration/detail",
    method: "get",
  });
}